package com.xy.learn.springlearn.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;

@Service
public class ElectricService {

    @Autowired
    @Lazy
    private ElectricService electricService;

    public void charge() throws InterruptedException {
        System.out.println("change....");
        electricService.pay();
    }

    public void pay() {
        System.out.println("pay....");
    }
}
